Matthias Clasen [Mon, 5 Dec 2005 21:33:05 +0000 (21:33 +0000)]
Forgotten file
Matthias Clasen [Mon, 5 Dec 2005 21:28:32 +0000 (21:28 +0000)]
Use g_slice instead of mem chunks.
2005-12-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwidget.c:
* gtk/gtkuimanager.c:
* gtk/gtktreedatalist.c:
* gtk/gtktext.c:
* gtk/gtkmain.c:
* gtk/gtkitemfactory.c:
* gtk/gtkseparator.[hc]:
* gtk/gtkclist.[hc]:
* gtk/gtkctree.c:
* gtk/gtkgc.c: Use g_slice instead of mem chunks.
Michael Natterer [Mon, 5 Dec 2005 21:06:57 +0000 (21:06 +0000)]
map the new GtkSettings properties "timeout-initial", "timeout-repeat",
2005-12-05 Michael Natterer <mitch@imendio.com>
* gdk/x11/gdkevents-x11.c: map the new GtkSettings properties
"timeout-initial", "timeout-repeat", "color-scheme" and
"enable-enimations" to X settings.
Matthias Clasen [Mon, 5 Dec 2005 20:51:18 +0000 (20:51 +0000)]
Use g_slice instead of mem chunks.
2005-12-05 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkevents.c:
* gdk/gdkcolor.c: Use g_slice instead of mem chunks.
Matthias Clasen [Mon, 5 Dec 2005 20:12:33 +0000 (20:12 +0000)]
Free new_event after sending it to the search entry. (#323209, Crispin
2005-12-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_key_press): Free new_event
after sending it to the search entry. (#323209, Crispin Flowerday)
Matthias Clasen [Mon, 5 Dec 2005 18:52:04 +0000 (18:52 +0000)]
Forgotten commit
Matthias Clasen [Mon, 5 Dec 2005 16:39:29 +0000 (16:39 +0000)]
Add a note about GTK_FLOATING.
2005-12-05 Matthias Clasen <mclasen@redhat.com>
* README.in: Add a note about GTK_FLOATING.
Matthias Clasen [Mon, 5 Dec 2005 15:49:55 +0000 (15:49 +0000)]
Use g_object_is_floating.
2005-12-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkobject.h (GTK_OBJECT_FLOATING): Use g_object_is_floating.
Takeshi AIHANA [Sat, 3 Dec 2005 17:14:19 +0000 (17:14 +0000)]
Fixed translation of "Widget" and "Index" reported by kano@na.rim.or.jp.
2005-12-04 Takeshi AIHANA <aihana@gnome.gr.jp>
* ja.po: Fixed translation of "Widget" and "Index" reported by kano@na.rim.or.jp.
Matthias Clasen [Fri, 2 Dec 2005 20:57:45 +0000 (20:57 +0000)]
Don't leak a pixbuf. (#323024, Paolo Borelli)
2005-12-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktoolbutton.c (clone_image_menu_size): Don't leak
a pixbuf. (#323024, Paolo Borelli)
Matthias Clasen [Fri, 2 Dec 2005 19:57:36 +0000 (19:57 +0000)]
Don't crash if mime_type is NULL. (#322998, Sadrul Habib Chowdhury)
2005-12-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystemunix.c (get_icon_for_mime_type): Don't crash
if mime_type is NULL. (#322998, Sadrul Habib Chowdhury)
Michael Natterer [Fri, 2 Dec 2005 19:49:10 +0000 (19:49 +0000)]
applied modified patch from maemo-gtk which adds a "horizontal-padding"
2005-12-02 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenu.c: applied modified patch from maemo-gtk which
adds a "horizontal-padding" style property. Fixes bug #323036.
Michael Natterer [Thu, 1 Dec 2005 20:49:17 +0000 (20:49 +0000)]
Merged modified patch from maemo-gtk that allows to disable toolbar
2005-12-01 Michael Natterer <mitch@imendio.com>
Merged modified patch from maemo-gtk that allows to disable
toolbar animations. Addresses bug #142582.
* gtk/gtksettings.c: added boolean property "gtk-enable-animations".
(patch from Christian Neumair)
* gtk/gtktoolbar.c: don't animate toolbar changes if the settings
property is FALSE. Replaced the individual "notify::foo"
connections to GtkSettings by a single "notify" callback and
dispatch internally.
Matthias Clasen [Thu, 1 Dec 2005 19:04:41 +0000 (19:04 +0000)]
Merge upstream changes to handle duplicate glob patterns.
Michael Natterer [Thu, 1 Dec 2005 13:03:43 +0000 (13:03 +0000)]
removed redundant assignment of widget_class->motion_notify_event.
2005-12-01 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenu.c (gtk_menu_class_init): removed redundant
assignment of widget_class->motion_notify_event.
Matthias Clasen [Wed, 30 Nov 2005 04:25:34 +0000 (04:25 +0000)]
Add an active property. (#322673, Jorn Baayen)
2005-11-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktoggleaction.c (gtk_toggle_action_class_init): Add
an active property. (#322673, Jorn Baayen)
Matthias Clasen [Tue, 29 Nov 2005 19:34:15 +0000 (19:34 +0000)]
Properly handle model changes in GtkTreeSelection: (#322569, Milosz
2005-11-29 Matthias Clasen <mclasen@redhat.com>
Properly handle model changes in GtkTreeSelection: (#322569,
Milosz Derezynski)
* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
Get a reference to the model, and stop the iteration if the model
of the treeview is changed on the way.
* gtk/gtktreeprivate.h:
* gtk/gtktreeselection.c (_gtk_tree_selection_emit_changed): New
private function to emit the GtkTreeSelection::changed signal.
* gtk/gtktreeview.c (gtk_tree_view_set_model): Call
_gtk_tree_selection_emit_changed() when the model changes.
Federico Mena Quintero [Tue, 29 Nov 2005 01:15:13 +0000 (01:15 +0000)]
Fixes the critical warnings from bug #317999, thus fixing the bug
2005-11-28 Federico Mena Quintero <federico@ximian.com>
Fixes the critical warnings from bug #317999, thus fixing the bug
completely:
* gtk/gtkfilechooserdefault.c
(gtk_file_chooser_default_get_paths): In SELECT_FOLDER mode,
use _gtk_file_chooser_get_current_folder_path() instead of fetching the
impl->current_folder directly. The latter may be null if we are
in RELOAD_NONE state.
Federico Mena Quintero [Mon, 28 Nov 2005 22:25:03 +0000 (22:25 +0000)]
Fix bug #321560, based on a patch by Bogdan Nicula (bogdanni@hotmail.com):
2005-11-28 Federico Mena Quintero <federico@ximian.com>
Fix bug #321560, based on a patch by Bogdan Nicula (bogdanni@hotmail.com):
* gtk/gtkfilechooserdefault.c (up_folder_handler): Don't add the
current_folder to the pending select paths here; the path bar will
give it to us now.
(path_bar_clicked): Add the child_path to the pending select paths
here.
(show_and_select_paths): Don't filter out folders.
(show_and_select_paths): Don't take separate arguments for
only_one_path and multiple paths.
* tests/autotestfilechooser.c (test_folder_switch_and_filters):
New test about preserving the filters when we change folders.
Matthias Clasen [Mon, 28 Nov 2005 16:00:26 +0000 (16:00 +0000)]
Insert an LRM, to prevent -20 to come out as 20- in RTL locales. (#322571,
2005-11-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkscale.c (_gtk_scale_format_value): Insert an LRM, to prevent
-20 to come out as 20- in RTL locales. (#322571, Tze'ela Hebron)
Matthias Clasen [Mon, 28 Nov 2005 15:42:00 +0000 (15:42 +0000)]
Buttons use the label property for stock ids. (#322565, Milosz Derezynski)
2005-11-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaction.c (gtk_action_sync_button_stock_id)
(connect_proxy): Buttons use the label property for stock ids. (#322565,
Milosz Derezynski)
Matthias Clasen [Mon, 28 Nov 2005 15:32:44 +0000 (15:32 +0000)]
Correctly handle the cell list and indices into it. (#321856)
2005-11-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (update_text_cell, update_pixbuf_cell): Correctly
handle the cell list and indices into it. (#321856)
Matthias Clasen [Mon, 28 Nov 2005 14:37:53 +0000 (14:37 +0000)]
Update docs
Matthias Clasen [Mon, 28 Nov 2005 14:23:17 +0000 (14:23 +0000)]
Forgotten file
Matthias Clasen [Mon, 28 Nov 2005 14:17:06 +0000 (14:17 +0000)]
Set timer_tag to 0 when the timeout is done. (#322291, Jean-Yves Lefort)
2005-11-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktooltips.c (gtk_tooltips_timeout): Set timer_tag to 0 when
the timeout is done. (#322291, Jean-Yves Lefort)
Matthias Clasen [Mon, 28 Nov 2005 14:03:20 +0000 (14:03 +0000)]
Make F2 work for renaming bookmarks. (#320822, Jaap A. Haitsma, patch by
2005-11-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (shortcuts_key_press_event_cb): Make
F2 work for renaming bookmarks. (#320822, Jaap A. Haitsma, patch
by Paolo Borelli)
Tor Lillqvist [Mon, 28 Nov 2005 08:40:56 +0000 (08:40 +0000)]
Implement the conditional use of FlashWindowEx() properly for MSVC
2005-11-28 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint):
Implement the conditional use of FlashWindowEx() properly for MSVC
compilations. The code was confusingly assuming that if compiled
with a "new" compiler, it will only be run on "new" Windows
versions. We want it to run on "old" versions, too, even if
compiled with a "new" compiler. There are two orthogonal issues:
whether the compiler defines the necessary API in its headers, and
whether it is present at run-time. (#318077)
Tor Lillqvist [Mon, 28 Nov 2005 01:51:08 +0000 (01:51 +0000)]
Use GetLocaleInfo() on Windows to get the localized weekday and month
2005-11-28 Tor Lillqvist <tml@novell.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Use GetLocaleInfo() on
Windows to get the localized weekday and month names. strftime()
in the Microsoft C library returns strings in the default codepage
for the locale of the process, not the system codepage. Thus
g_locale_to_utf8() isn't useable on the return value from
strftime(). (#322603)
Matthias Clasen [Sun, 27 Nov 2005 20:48:41 +0000 (20:48 +0000)]
Fix an example. (#322493, Elie De Brauwer)
2005-11-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
Fix an example. (#322493, Elie De Brauwer)
Matthias Clasen [Sun, 27 Nov 2005 20:36:15 +0000 (20:36 +0000)]
Fix two memory handling problems in GtkTreeView: (#322350, Søren
2005-11-27 Matthias Clasen <mclasen@redhat.com>
Fix two memory handling problems in GtkTreeView: (#322350,
Søren Sandmann)
* gtk/gtktreeview.c (gtk_tree_view_destroy)
(gtk_tree_view_set_model): Remove all references to nodes in
the old model.
(gtk_tree_view_real_collapse_row): Unmark expanded_collapsed_node
before removing the children.
Matthias Clasen [Sun, 27 Nov 2005 20:23:46 +0000 (20:23 +0000)]
Don't leak a PangoLayout here. (#322505, Paolo Borelli)
2005-11-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcolorbutton.c (gtk_color_button_init): Don't leak a
PangoLayout here. (#322505, Paolo Borelli)
Tor Lillqvist [Sun, 27 Nov 2005 02:58:09 +0000 (02:58 +0000)]
Once again rework Win32 window decoration code. Doesn't break #104514. The
2005-11-27 Tor Lillqvist <tml@novell.com>
Once again rework Win32 window decoration code. Doesn't break
#104514. The dialogs in gtk-demo now have the same decorations and
behaviour as on X11. Tried to fix #322516 but it seems very hard
to make the trivial sample program there behave as expected. OTOH,
simply moving the gtk_window_decorate() call in the #322516 sample
program after the call to gtk_widget_show() helps...
* gdk/win32/gdkwindow-win32.c (set_or_clear_style_bits): Revert to
the correct semantics. Each call to gdk_window_set_decorations()
which calls this function is supposed to affect all decorations.
(decorate_based_on_hints): New function, looks at both geometry
hints and type hint and sets window decorations based on
that. Consolidate code from gdk_window_set_geometry_hints() and
gdk_window_set_type_hint() here.
(gdk_window_set_geometry_hints, gdk_window_set_type_hint): Call
decorate_based_on_hints().
Tor Lillqvist [Sun, 27 Nov 2005 00:20:55 +0000 (00:20 +0000)]
Revert to the correct semantics. (#322516)
2005-11-27 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkwindow-win32.c (set_or_clear_style_bits): Revert to
the correct semantics. (#322516)
(gdk_window_set_geometry_hints): Adjust call correspondingly.
Dom Lachowicz [Fri, 25 Nov 2005 23:47:46 +0000 (23:47 +0000)]
Merge ... gtk-wimp's CVS. Includes improved menu icon spacing, [+]/[-]
* modules/engines/ms-windows/*.[ch]: Merge with gtk-wimp's CVS.
Includes improved menu icon spacing, [+]/[-] expander drawing,
status-bar gippie drawing, and notebook tab drawing.
Michael Natterer [Thu, 24 Nov 2005 16:51:22 +0000 (16:51 +0000)]
changed two private guint that used to hold signal handler IDs to two
2005-11-24 Michael Natterer <mitch@imendio.com>
* gtk/gtktoolbar.h (struct _GtkToolbar): changed two private guint
that used to hold signal handler IDs to two guint of padding.
* gtk/gtktoolbar.c (struct _GtkToolbarPrivate): added them as
gulong here.
(gtk_toolbar_screen_changed): changed accordingly.
Tim Janik [Wed, 23 Nov 2005 18:06:58 +0000 (18:06 +0000)]
deprecated floating/sink API and implemented it in terms of the GObject
Wed Nov 23 18:55:47 2005 Tim Janik <timj@imendio.com>
* gtk/gtkobject.[hc]: deprecated floating/sink API and implemented it
in terms of the GObject floating/sink API.
* gtk/gtkaboutdialog.c:
* gtk/gtkaction.c:
* gtk/gtkcellview.c:
* gtk/gtkclist.c:
* gtk/gtkcolorsel.c:
* gtk/gtkcombobox.c:
* gtk/gtkfilechooserdefault.c:
* gtk/gtkiconview.c:
* gtk/gtkinvisible.c:
* gtk/gtkitemfactory.c:
* gtk/gtklayout.c:
* gtk/gtkmenu.c:
* gtk/gtkmenutoolbutton.c:
* gtk/gtknotebook.c:
* gtk/gtkprogress.c:
* gtk/gtkrange.c:
* gtk/gtkspinbutton.c:
* gtk/gtkstatusicon.c:
* gtk/gtktext.c:
* gtk/gtktextview.c:
* gtk/gtktoolbar.c:
* gtk/gtktoolbutton.c:
* gtk/gtktoolitem.c:
* gtk/gtktreeitem.c:
* gtk/gtktreeview.c:
* gtk/gtktreeviewcolumn.c:
* gtk/gtkuimanager.c:
* gtk/gtkviewport.c:
* gtk/gtkwidget.c:
* gtk/gtkwindow.c:
ported to use GObject's g_object_ref_sink().
* gtk/gtkcolorsel.c:
* gtk/gtkfilechooserdefault.c:
* gtk/gtkaboutdialog.c:
fixed compiler warnings.
Matthias Clasen [Wed, 23 Nov 2005 17:11:36 +0000 (17:11 +0000)]
Document symbolic colors and color expressions.
2005-11-23 Matthias Clasen <mclasen@redhat.com>
* gtk/tmpl/gtkrc.sgml: Document symbolic colors and
color expressions.
Behdad Esfahbod [Wed, 23 Nov 2005 16:51:23 +0000 (16:51 +0000)]
Fix typo when checking libtool config deplibs_check_method. Moreover,
2005-11-23 Behdad Esfahbod <behdad@gnome.org>
* configure.in (enable_explicit_deps): Fix typo when checking
libtool config deplibs_check_method. Moreover, enable explicit
deps if we get anything other than pass_all from libtool. (part of
#318750)
Behdad Esfahbod [Wed, 23 Nov 2005 16:49:59 +0000 (16:49 +0000)]
Added: ? gtk/gtkbuiltincache.h ? gtk/stock-icons/icon-theme.cache
Added:
? gtk/gtkbuiltincache.h
? gtk/stock-icons/icon-theme.cache
Matthias Clasen [Wed, 23 Nov 2005 15:09:47 +0000 (15:09 +0000)]
Don't create a big string, since Visual C++ doesn't like strings longer
2005-11-23 Matthias Clasen <mclasen@redhat.com>
* gtk/updateiconcache.c (write_csource): Don't create a big
string, since Visual C++ doesn't like strings longer than 64k.
(#322238, Kazuki IWAMOTO
Matthias Clasen [Wed, 23 Nov 2005 14:35:05 +0000 (14:35 +0000)]
Include gtkimcontextsimple.h (#322235, Kazuki IWAMOTO)
2005-11-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c: Include gtkimcontextsimple.h (#322235,
Kazuki IWAMOTO)
Michael Natterer [Wed, 23 Nov 2005 14:23:26 +0000 (14:23 +0000)]
don't leak all toplevel windows on other screens (correctly remove all
2005-11-23 Michael Natterer <mitch@imendio.com>
* gtk/gtkrc.c (gtk_rc_reset_widgets): don't leak all toplevel
windows on other screens (correctly remove all temporary
references).
Michael Natterer [Wed, 23 Nov 2005 10:34:35 +0000 (10:34 +0000)]
add gtk_style_lookup_color
2005-11-23 Michael Natterer <mitch@imendio.com>
* gtk/gtk-sections.txt: add gtk_style_lookup_color
Michael Natterer [Wed, 23 Nov 2005 10:33:58 +0000 (10:33 +0000)]
Added symbolic themable colors. Patch is a merged version of proposals
2005-11-23 Michael Natterer <mitch@imendio.com>
Added symbolic themable colors. Patch is a merged version of
proposals from Matthias and maemo-gtk. Fixes bug #114355.
* configure.in: require glib >= 2.9.1 for refcountable hashtables.
* gtk/gtksettings.c: added property "color-scheme" which is a
string defining colors like "foreground:black\nbackground:grey".
Automatically provide a name->GdkColor hash table mapping for the
color scheme.
* gtk/gtkrc.[ch]: added list of color hashes that works like the
list of icon factories. Append the color scheme hash from
GtkSettings if it exists. Extended gtkrc syntax to allow defining
and referencing of logical colors. Also allow to modulate colors
in gtkrc by using arbitrary expressions of mix(), shade(),
lighter() and darker(). Added internal function
_gtk_rc_style_get_color_hashes().
* gtk/gtkstyle.[ch]: keep a private list of color hashes around.
Get the list from _gtk_rc_style_get_color_hashes(). Export
internal function _gtk_style_shade() (used by above color
expressions). Added public API gtk_style_lookup_color() which
looks up a logical color by name.
* gtk/gtk.symbols: add gtk_style_lookup_color
* tests/testgtkrc: use symbolic colors for making
the scrollbars red.
Michael Natterer [Tue, 22 Nov 2005 12:40:15 +0000 (12:40 +0000)]
Made button-press timeouts which work like key repeat timeouts
2005-11-22 Michael Natterer <mitch@imendio.com>
Made button-press timeouts which work like key repeat timeouts
configurable. Addresses bug #142582:
* gtk/gtksettings.c: added properties "gtk-timeout-initial" and
"gtk-timeout-repeat" which defalt to 200/20 (ms).
Use the values from GtkSettings instead of hardcoding them
(the repeat value is either taken as-is for fast repeat or
multiplied by 5 for slow repeat). Changed all places to use these
two standard initial/repeat timings:
* gtk/gtkcalendar.c (unchanged 200/20)
* gtk/gtknotebook.c (unchanged 200/100)
* gtk/gtkpathbar.c (changed from 300/150 to 200/100)
* gtk/gtkrange.c (changed from 250/100 to 200/100)
* gtk/gtkspinbutton.c (unchanged 200/20)
Anders Carlsson [Tue, 22 Nov 2005 10:03:32 +0000 (10:03 +0000)]
Add quartz backend.
2005-11-21 Anders Carlsson <andersca@imendio.com>
* configure.in:
* gtk/Makefile.am:
* gdk/Makefile.am:
* gdk/quartz/*:
Add quartz backend.
* docs/tools/Makefile.am:
Only build docshooter when the X11 backend is used.
* gtk/gtkplug-stub.c:
Include gtkplug.h here.
* gtk/gtksocket-stub.c:
Include gtksocket.h here.
Anders Carlsson [Tue, 22 Nov 2005 10:01:03 +0000 (10:01 +0000)]
Add quartz backend.
2005-11-21 Anders Carlsson <andersca@imendio.com>
* configure.in:
* gtk/Makefile.am:
* gdk/Makefile.am:
* gdk/quartz/*:
Add quartz backend.
* docs/tools/Makefile.am:
Only build docshooter when the X11 backend is used.
* gtk/gtkplug-stub.c:
Include gtkplug.h here.
* gtk/gtksocket-stub.c:
Include gtksocket.h here.
Pablo Saratxaga [Mon, 21 Nov 2005 22:31:07 +0000 (22:31 +0000)]
updated Walloon file; changed my email address
Matthias Clasen [Mon, 21 Nov 2005 16:24:59 +0000 (16:24 +0000)]
Convert GtkSocket to g_type_class_add_private.
2005-11-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksocket.c: Convert GtkSocket to g_type_class_add_private.
Matthias Clasen [Mon, 21 Nov 2005 16:15:11 +0000 (16:15 +0000)]
Convert GtkMenu to g_type_class_add_private.
2005-11-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c: Convert GtkMenu to g_type_class_add_private.
Matthias Clasen [Mon, 21 Nov 2005 16:01:56 +0000 (16:01 +0000)]
Add a tearoff-title property, with getter and setter. (#316482, Olexiy
2005-11-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk.symbols:
* gtk/gtkcombobox.[hc]: Add a tearoff-title property,
with getter and setter. (#316482, Olexiy Avramchenko)
* tests/testcombo.c (main): Test gtk_combo_box_set_title
Matthias Clasen [Mon, 21 Nov 2005 15:54:59 +0000 (15:54 +0000)]
Fix some _ vs - confusion.
2005-11-21 Matthias Clasen <mclasen@redhat.com>
* gtk/Makefile.am (HTML_IMAGES): Fix some _ vs - confusion.
Matthias Clasen [Mon, 21 Nov 2005 15:00:57 +0000 (15:00 +0000)]
Merge remaining fixes from the 2.8 branch, pointed out by Michael
2005-11-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkpathbar.c: Merge remaining fixes from the 2.8 branch,
pointed out by Michael Natterer.
Matthias Clasen [Mon, 21 Nov 2005 14:34:52 +0000 (14:34 +0000)]
Fix for bug #321542, Benedikt Meurer:
2005-11-21 Matthias Clasen <mclasen@redhat.com>
Fix for bug #321542, Benedikt Meurer:
* gtk/gtkcombobox.c (gtk_combo_box_set_active_internal):
Emit notify::active.
(gtk_combo_box_child_show, gtk_combo_box_child_hide): Use
g_signal_emit, not g_signal_emit_by_name.
Theppitak Karoonboonyanan [Sun, 20 Nov 2005 08:55:26 +0000 (08:55 +0000)]
Adjusted wording.
2005-11-20 Theppitak Karoonboonyanan <thep@linux.thai.net>
* th.po: Adjusted wording.
Theppitak Karoonboonyanan [Sat, 19 Nov 2005 05:43:01 +0000 (05:43 +0000)]
Fixed typo.
2005-11-19 Theppitak Karoonboonyanan <thep@linux.thai.net>
* th.po: Fixed typo.
Matthias Clasen [Sat, 19 Nov 2005 03:46:04 +0000 (03:46 +0000)]
Fix crashes in connection with pathbar scrolling (#321560, Bogdan Nicula)
2005-11-18 Matthias Clasen <mclasen@redhat.com>
Fix crashes in connection with pathbar scrolling (#321560,
Bogdan Nicula)
* gtk/gtkpathbar.c (gtk_path_bar_update_slider_buttons):
Stop scrolling when desensitising slider buttons.
(gtk_path_bar_scroll_timeout, gtk_path_bar_slider_button_press):
And use it here.
* gtk/gtkpathbar.h (struct _GtkPathBar): Add a separate
scrolling_down flag.
Matthias Clasen [Fri, 18 Nov 2005 19:56:52 +0000 (19:56 +0000)]
Fix a C99ism. (#321777, Jens Granseuer)
2005-11-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkpathbar.c (button_clicked_cb): Fix a C99ism.
(#321777, Jens Granseuer)
Matthias Clasen [Fri, 18 Nov 2005 19:47:57 +0000 (19:47 +0000)]
Disconnect the sync callback for the visibility property. (#321761, Philip
2005-11-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaction.c (disconnect_proxy): Disconnect the
sync callback for the visibility property. (#321761,
Philip Langdale)
Matthias Clasen [Fri, 18 Nov 2005 19:13:11 +0000 (19:13 +0000)]
Turn off input methods in invisible entries, since they are confusing.
2005-11-18 Matthias Clasen <mclasen@redhat.com>
Turn off input methods in invisible entries, since
they are confusing. (#317002, James Su)
* gtk/gtkentry.c (gtk_entry_set_visibility): Toggle input
methods if visibility changes.
(popup_targets_received): Don't show the input method
menu if the entry is invisible.
Žygimantas Beručka [Thu, 17 Nov 2005 16:09:09 +0000 (16:09 +0000)]
Updated Lithuanian translation
2005-11-17 Žygimantas Beručka <zygis@gnome.org>
* lt.po: Updated Lithuanian translation
Matthias Clasen [Thu, 17 Nov 2005 15:04:21 +0000 (15:04 +0000)]
Add a note about range arrow sensitivity.
2005-11-17 Matthias Clasen <mclasen@redhat.com>
* README.in: Add a note about range arrow sensitivity.
Matthias Clasen [Thu, 17 Nov 2005 14:57:24 +0000 (14:57 +0000)]
const correctness fixes
found by Arjan van de Ven and gcc.
Michael Natterer [Wed, 16 Nov 2005 14:40:41 +0000 (14:40 +0000)]
call gtk_window_process_updates() so the animation keeps running even if
2005-11-16 Michael Natterer <mitch@imendio.com>
* gtk/gtkimage.c (animation_timeout): call
gtk_window_process_updates() so the animation keeps running even
if the main loop is busy with sources that eat a lot of cpu with
high priority. Fixes bug #321444.
(gtk_image_new_from_animation): document the fact that the
animation will stop running if the main loop is busy with sources
that have priorities higher than G_PRIORITY_DEFAULT.
* tests/testimage.c: added test case that shows an animation even
though a cpu-eating idle function is running.
Michael Natterer [Wed, 16 Nov 2005 12:36:22 +0000 (12:36 +0000)]
new internal function which destroys the display's event source. Also
2005-11-16 Michael Natterer <mitch@imendio.com>
* gdk/x11/gdkevents-x11.c (_gdk_events_uninit): new internal
function which destroys the display's event source. Also removes
the source from the global display_sources list and unrefs it.
* gdk/x11/gdkprivate-x11.h: declare the function.
* gdk/x11/gdkdisplay-x11.c (gdk_display_x11_dispose): call it
instead of half-destroying the source here.
Ales Nyakhaychyk [Wed, 16 Nov 2005 10:59:34 +0000 (10:59 +0000)]
Updated Belarusian Translation
Matthias Clasen [Tue, 15 Nov 2005 15:59:05 +0000 (15:59 +0000)]
Fix integer overflows in the xpm loader
Matthias Clasen [Tue, 15 Nov 2005 15:38:53 +0000 (15:38 +0000)]
Fix a memory leak. (#321032, Peter Zelezny)
* gtk/gtktreestore.c (gtk_tree_store_move): Fix a memory
leak. (#321032, Peter Zelezny)
Michael Natterer [Tue, 15 Nov 2005 14:42:48 +0000 (14:42 +0000)]
destroy display->xid_ht as late as possible (right before XCloseDisplay)
2005-11-15 Michael Natterer <mitch@imendio.com>
* gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize): destroy
display->xid_ht as late as possible (right before XCloseDisplay)
because it still needs to be around when the display's screens are
finalized. (#85715)
Matthias Clasen [Tue, 15 Nov 2005 05:11:24 +0000 (05:11 +0000)]
Plug a leak
Matthias Clasen [Mon, 14 Nov 2005 18:49:41 +0000 (18:49 +0000)]
Avoid a crash
Michael Natterer [Mon, 14 Nov 2005 11:28:33 +0000 (11:28 +0000)]
removed redundant calls to g_object_notify().
2005-11-14 Michael Natterer <mitch@imendio.com>
* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_set_property):
removed redundant calls to g_object_notify().
Matthias Clasen [Mon, 14 Nov 2005 05:49:44 +0000 (05:49 +0000)]
Update stock documentation to refer to the new icon names.
2005-11-14 Matthias Clasen <mclasen@redhat.com>
* gtk/tmpl/gtkstock.sgml:
* gtk/Makefile.am (HTML_IMAGES): Update stock documentation
to refer to the new icon names.
Matthias Clasen [Mon, 14 Nov 2005 04:34:43 +0000 (04:34 +0000)]
Documentation improvements. (#321338)
2005-11-13 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkcolor.c (gdk_color_parse): Documentation
improvements. (#321338)
Matthias Clasen [Mon, 14 Nov 2005 04:25:25 +0000 (04:25 +0000)]
Make limit an inclusive boundary. (#321299)
2005-11-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextiter.c (gtk_text_iter_forward_search): Make
limit an inclusive boundary. (#321299)
Francisco Javier F. Serrador [Sun, 13 Nov 2005 10:41:15 +0000 (10:41 +0000)]
Updated Spanish translation.
2005-11-13 Francisco Javier F. Serrador <serrador@cvs.gnome.org>
* es.po: Updated Spanish translation.
Michael Natterer [Sat, 12 Nov 2005 20:08:12 +0000 (20:08 +0000)]
fixed icon rules so gtkbuiltincache.h is only rebuilt if needed.
2005-11-12 Michael Natterer <mitch@imendio.com>
* gtk/Makefile.am: fixed icon rules so gtkbuiltincache.h is only
rebuilt if needed.
Dom Lachowicz [Sat, 12 Nov 2005 14:20:51 +0000 (14:20 +0000)]
Bug #313627. Make win32 theme's handling of toolbars, handleboxes, and
2005-11-12 Dom Lachowicz <cinamod@hotmail.com>
* modules/engines/ms-windows/msw_style.c: Bug #313627. Make win32
theme's handling of toolbars, handleboxes, and menubars more in-line
with Microsoft's IE style.
* modules/engines/ms-windows/*.c: Indentation cleanups
Matthias Clasen [Sat, 12 Nov 2005 06:59:49 +0000 (06:59 +0000)]
Make builtin icons work in gtk_window_set_icon_name() (#321046, Maxim
2005-11-12 Matthias Clasen <mclasen@redhat.com>
Make builtin icons work in gtk_window_set_icon_name()
(#321046, Maxim Udushlivy)
* gtk/gtkicontheme.c (insert_theme): Always insert the default
theme.
(ensure_valid_themes): Call _gtk_icon_theme_ensure_builtin_cache()
from here.
(theme_lookup_icon, find_builtin_icon): ...and not from here.
(gtk_icon_theme_lookup_icon): Remove an unncessary assert.
(gtk_icon_theme_get_icon_sizes): Also check builtin icons.
Tor Lillqvist [Sat, 12 Nov 2005 01:12:08 +0000 (01:12 +0000)]
Don't hide dotfiles, no such convention on Win32. Just hide files with the
2005-11-12 Tor Lillqvist <tml@novell.com>
* gtk/gtkfilesystemwin32.c (filename_get_info): Don't hide
dotfiles, no such convention on Win32. Just hide files with the
hidden attribute. (#314627)
Federico Mena Quintero [Fri, 11 Nov 2005 22:29:09 +0000 (22:29 +0000)]
Do not check whether the path is a folder. It is useful to bookmark files
2005-11-11 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Do not
check whether the path is a folder. It is useful to bookmark
files as well (e.g. todo.txt), and this will also help
performance.
(shortcuts_add_bookmark_from_path): Likewise.
(shortcuts_activate_iter): Change folders or select files, as
appropriate.
Federico Mena Quintero [Fri, 11 Nov 2005 19:35:35 +0000 (19:35 +0000)]
Use g_log_set_default_handler() instead of explicitly setting a handler
2005-11-11 Federico Mena Quintero <federico@ximian.com>
* tests/autotestfilechooser.c (main): Use
g_log_set_default_handler() instead of explicitly setting a
handler for each domain.
Federico Mena Quintero [Fri, 11 Nov 2005 19:29:44 +0000 (19:29 +0000)]
Only get the base path of the volume if it is mounted.
2005-11-11 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Only get
the base path of the volume if it is mounted.
Michael Natterer [Fri, 11 Nov 2005 12:48:29 +0000 (12:48 +0000)]
Added per-stepper API for GtkRange's stepper sensitivity as discussed in
2005-11-11 Michael Natterer <mitch@imendio.com>
Added per-stepper API for GtkRange's stepper sensitivity as
discussed in bug #321056:
* gtk/gtkenums.h: added GtkSensitivityType which can be
{ AUTO, ON, OFF }.
* gtk/gtkrange.[ch]: added properties "lower-stepper-sensitivity"
and "upper-stepper-sensitivity" and public getters/setters for
them. Changed stepper drawing to honor the new properties.
* gtk/gtk.symbols: added the new symbols.
Matthias Clasen [Thu, 10 Nov 2005 21:17:19 +0000 (21:17 +0000)]
Add show-popup and hide-popup signals and emit them when the popup is
2005-11-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcombobox.c: Add show-popup and hide-popup signals and
emit them when the popup is shown or hidden. (#162531, Tommi
Komulainen)
Matthias Clasen [Thu, 10 Nov 2005 17:57:14 +0000 (17:57 +0000)]
Another erroneous semicolon.
2005-11-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_motion_resize_column): Another
erroneous semicolon.
Matthias Clasen [Thu, 10 Nov 2005 17:42:48 +0000 (17:42 +0000)]
Remove an erroneous semicolon.
2005-11-10 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkcolor-x11.c (gdkx_colormap_get): Remove an erroneous
semicolon.
Matthias Clasen [Thu, 10 Nov 2005 17:38:09 +0000 (17:38 +0000)]
Don't corrupt odd keymaps (#316638, Kean Johnston)
2005-11-10 Matthias Clasen <mclasen@redhat.com>
Don't corrupt odd keymaps (#316638, Kean Johnston)
* gdk/x11/gdkkeys-x11.c (set_symbol): Auxiliary function to
handle frobbing keymaps with odd numbers of syms/code.
* gdk/x11/gdkkeys-x11.c (update_keymaps): Use set_symbol() to
frob the keymap.
Matthias Clasen [Thu, 10 Nov 2005 15:17:40 +0000 (15:17 +0000)]
Improve navigation to parent folders. (#318444, Andrei Yurkevich)
2005-11-10 Matthias Clasen <mclasen@redhat.com>
Improve navigation to parent folders. (#318444, Andrei Yurkevich)
* gtk/gtkpathbar.[hc]: Add a child_path argument to
the path_clicked signal.
* gtk/gtkfilechooserdefault.c (path_bar_clicked): Select the
child_path, if it is provided.
* gtk/marshalers.list (path_bar_clicked): Add the necessary
glue.
Matthias Clasen [Thu, 10 Nov 2005 14:33:51 +0000 (14:33 +0000)]
Fix some compiler warnings. (#321141, Kjartan Maraas)
2005-11-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c: Fix some compiler warnings. (#321141,
Kjartan Maraas)
Matthias Clasen [Thu, 10 Nov 2005 14:18:45 +0000 (14:18 +0000)]
Implement a getter for headers-clickable. (#163851, Richard Hult)
2005-11-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c: Implement a getter for headers-clickable.
(#163851, Richard Hult)
Michael Natterer [Thu, 10 Nov 2005 12:09:42 +0000 (12:09 +0000)]
Applied patch from maemo-gtk that addresses many issues wrt display
2005-11-10 Michael Natterer <mitch@imendio.com>
Applied patch from maemo-gtk that addresses many issues wrt
display migration and display closing (bug #85715).
* gdk/gdkdisplay.c (gdk_display_dispose): don't just set the
default display to NULL when it's closed. Instead set the most
recently opened display as new default (if one exists).
* gdk/gdkpango.c (on_renderer_display_closed): fixed signature
of this callback.
* gdk/gdkscreen.c (gdk_screen_dispose): check if the GCs still
exist before unrefing them.
* gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): if the screen
is closed, allow destruction of the root window.
* gdk/x11/gdkdisplay-x11.c: moved some stuff from finalize() to
dispose(), free stuff that was leaked before.
* gdk/x11/gdkevents-x11.c (_gdk_x11_events_uninit_screen): check if
the xsettings_client still exists before destroying it.
* gdk/x11/gdkkeys-x11.c: added finalization and free the allocated
X resources.
* gdk/x11/gdkpixmap-x11.c: moved stuff from finalize() to new
dispose() implementation.
* gdk/x11/gdkscreen-x11.c: moved stuff from finalize() to
dispose() and check if it still exists before unrefing it. Set
their pointers to NULL/None *after* upchaining in dispose(),
because X11 implementations of members of the parent class still
need them for their own destruction.
* gdk/x11/gdkvisual-x11.c: removed finalize() implementation which
was g_error()ing when finalizing a visual.
* gtk/gtkclipboard.c (gtk_clipboard_finalize): don't use
get_clipboard_widget() because it would create the widget if it
doesn't exist. Use g_object_get_data() directly instead.
* gtk/gtktextdisplay.c (on_renderer_display_closed): fixed signature
of this callback.
Simos Xenitellis [Thu, 10 Nov 2005 00:35:31 +0000 (00:35 +0000)]
Added Tatar translation by Albert Fazlí
Tim Janik [Wed, 9 Nov 2005 15:32:51 +0000 (15:32 +0000)]
patch from maemo-gtk that changes GtkRange to render its arrows
Wed Nov 9 16:29:42 2005 Tim Janik <timj@imendio.com>
* gtk/gtkrange.c: patch from maemo-gtk that changes GtkRange
to render its arrows insensitive when the adjustment is in
its min or max position. this makes range arrow behaviour
consistent with spin button behaviour. (#321056)
Tor Lillqvist [Wed, 9 Nov 2005 13:10:27 +0000 (13:10 +0000)]
gdk/gdkinternals.h Add new GDK_DEBUG_DRAW flag to the GdkDebugFlag enum.
2005-11-09 Tor Lillqvist <tml@novell.com>
* gdk/gdkinternals.h
* gdk/gdk.c (gdk_debug_keys[]): Add new GDK_DEBUG_DRAW flag to
the GdkDebugFlag enum.
* gdk/win32/gdkdrawable-win32.c: Use DRAW to trigger GDK_NOTEs in
this file instead of MISC. Now asking for MISC will give mainly
window manipulation debugging output.
Tor Lillqvist [Wed, 9 Nov 2005 12:35:56 +0000 (12:35 +0000)]
Remove unnecessary includes.
2005-11-09 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkwindow-win32.c: Remove unnecessary includes.
(_gdk_win32_get_adjusted_client_rect): Remove this two-line
function which was used only in one place.
(get_outer_rect): Use _gdk_win32_adjust_client_rect().
(gdk_window_set_geometry_hints): If we have identical minimum and
maximum size hints, remove the resize and maximize
decorations/functions. (#104514)
If we have a maximum size hint, remove the maximize
decoration/function but ensure the resize decoration/function is
available. Otherwise ensure both resize and maximize
decorations/functions are there.
(set_or_clear_style_bits): Factored out common code from
gdk_window_set_decorations() and gdk_window_set_functions().
Hack the window style setting once more: Only touch the window
style bits corresponding to the GdkWMDecoration or GdkWMFunction
parameter bitmasks. Hopefully this finally is the correct thing to
do. We used to clear all other bits than those that were being
set, or set all other bits than those that were being cleared.
Take into account that adding or removing decorations leaves the
window's outer size unchanged, i.e., the client area's size and
position change. This is apparently not what we want, so change
also the window's (outer) position and size appropriately so that
the client area's position and size stay constant.
gtk-demo's color selector dialog is now non-resizable like on X11
(I tested with metacity in GNOME). Torn off menus are shrinkable
vertically but have a maximum size, and are not maximizable or
minimizable, like on X11.
(gdk_window_set_decorations, gdk_window_set_functions): Let
set_or_clear_decorations() do most of the job.
* gdk/win32/gdkprivate-win32.h: Remove declaration of
_gdk_win32_get_adjusted_client_rect().
Tor Lillqvist [Wed, 9 Nov 2005 02:13:35 +0000 (02:13 +0000)]
gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32) Store the type
2005-11-09 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32)
* gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_init,
gdk_window_get_type_hint, gdk_window_get_type_hint): Store the
type hint. Implement gdk_window_get_type_hint() by just returning
the hint stored.
Tor Lillqvist [Tue, 8 Nov 2005 22:27:47 +0000 (22:27 +0000)]
Remove code that has been permanently ifdeffed out for two years.
2005-11-09 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
Remove code that has been permanently ifdeffed out for two years.
Matthias Clasen [Tue, 8 Nov 2005 21:46:34 +0000 (21:46 +0000)]
Unref tile and stipple when finalizing a gc. (#320789, Nickolay V.
2005-11-08 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkgc.c (gdk_gc_finalize): Unref tile and stipple when
finalizing a gc. (#320789, Nickolay V. Shmyrev)
Matthias Clasen [Tue, 8 Nov 2005 18:26:37 +0000 (18:26 +0000)]
Ignore icons if they would make the request large enough to cause Xlib to
2005-11-08 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Ignore
icons if they would make the request large enough to cause
Xlib to loose the connection. (#320909, Claudio Saavedra)